raar.vectorimage
Class RAGVectorObject

java.lang.Object
  extended byraar.vectorimage.RAGVectorObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RAGAgentShape, RAGAgentTrace, RAGVectorObject_Shape

public class RAGVectorObject
extends java.lang.Object
implements java.io.Serializable

A graphical vector object based on a world object.

See Also:
Serialized Form

Constructor Summary
RAGVectorObject(RAGVectorObjectSource obj)
          Constructor.
 
Method Summary
static RAGVectorObject createGVectorObject(RAGVectorObjectSource obj)
          Create a graphical vector object based on the world object given.
 java.awt.Color getColor()
          Return the colour for the object.
 RAGVectorObjectSource getObject()
          Get underlying object.
 float getOpacity()
          Return the opacity (0.0F = transparent, 1.0F = opaque).
 java.awt.Shape getShape()
          Create a shape for the object.
 boolean isFilled()
          Return whether to fill or draw this object.
 boolean isPerceivable()
          Return whether the object is perceivable by sensors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAGVectorObject

public RAGVectorObject(RAGVectorObjectSource obj)
Constructor.

Method Detail

createGVectorObject

public static RAGVectorObject createGVectorObject(RAGVectorObjectSource obj)
Create a graphical vector object based on the world object given.


getObject

public RAGVectorObjectSource getObject()
Get underlying object.


getShape

public java.awt.Shape getShape()
Create a shape for the object.


getColor

public java.awt.Color getColor()
Return the colour for the object.


isFilled

public boolean isFilled()
Return whether to fill or draw this object. Fill by default.


getOpacity

public float getOpacity()
Return the opacity (0.0F = transparent, 1.0F = opaque). By default, objects are opaque.


isPerceivable

public boolean isPerceivable()
Return whether the object is perceivable by sensors.